class MyDailyModel {
  int? errcode;
  String? errmsg;
  List<MyDailyItemModel>? data;
  String? message;

  MyDailyModel({this.errcode, this.errmsg, this.data, this.message});

  MyDailyModel.fromJson(Map<String, dynamic> json) {
    errcode = json['errcode'];
    errmsg = json['errmsg'];
    if (json['data'] != null) {
      data = <MyDailyItemModel>[];
      json['data'].forEach((v) {
        data!.add(new MyDailyItemModel.fromJson(v));
      });
    }
    message = json['message'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['errcode'] = this.errcode;
    data['errmsg'] = this.errmsg;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    return data;
  }
}

class MyDailyItemModel {
  int? id;
  String? title;
  String? content;
  String? createDate;
  String? dateBeauty;
  String? author;
  String? headerImg;
  String? teamName;
  int? comments;
  int? zans;
  String? state;

  MyDailyItemModel(
      {this.id,
        this.title,
        this.content,
        this.createDate,
        this.dateBeauty,
        this.author,
        this.headerImg,
        this.teamName,
        this.comments,
        this.zans,
        this.state});

  MyDailyItemModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    title = json['title'];
    content = json['content'];
    createDate = json['create_date'];
    dateBeauty = json['date_beauty'];
    author = json['author'];
    headerImg = json['header_img'];
    teamName = json['team_name'];
    comments = json['comments'];
    zans = json['zans'];
    state = json['state'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['title'] = this.title;
    data['content'] = this.content;
    data['create_date'] = this.createDate;
    data['date_beauty'] = this.dateBeauty;
    data['author'] = this.author;
    data['header_img'] = this.headerImg;
    data['team_name'] = this.teamName;
    data['comments'] = this.comments;
    data['zans'] = this.zans;
    data['state'] = this.state;
    return data;
  }
}
